/**
 * 
 */
package cn.netjava.softkid.chapter04;

/**
 * @author Administrator
 *
 */
public class Bank {
	private String name;
	private float account;
	private int accountID;
	private char sex;
	private long sum=0;
	
	public Bank(String name,float account,char sex,int id)
	{
		this.name=name;
		this.sex=sex;
		this.account=account;
		this.accountID=id;
	}
	
	public float withdrawMoney(float money)
	{
		sum-=money;
		account-=money;
		return money;
	}
	
	private void depositMoney(float money)
	{
		sum+=money;
		account+=money;
	}

	private float getAccount() {
		return account;
	}
}
